<% include ../pageHeader %>
<%
var strPageLinks = helper.generatePageLinks(intEntryCount, intEntryPerPage, intCurrentPage, 15, strURLPrefix);
%>
<div id="mainWrapper">
    <div id="content" class="content">
        <div id="innerContent">
            <div class="comment-wrapper">
                <div class="article-top">
                    <div class="pages">
                        <%= __('trackbacks') %> |
                        <% if(intCategory){ %>
                        <%= __('category') %>: <%= helper.HTMLEncode(theCache.getCategoryByID(intCategory).name) %> |
                        <% } %>
                        <% if(input["q"]){ %>
                        <%= __('search') %>: <%= helper.HTMLEncodeLite(input["q"]) %> |
                        <% } %>
                        <%= strPageLinks %>
                    </div>
                </div>
                <%
                if(intEntryCount == 0){
                %>
                <div class="no-entry">
                    <div class="no-entry-message">
                        <%= __('no_entry') %>
                    </div>
                </div>
                <%
                }else{
                for(var i = 0;i < trackbacks.length;i++){
                        with(trackbacks[i]){
                %>
                <div class="trackbackbox">
                    <div class="trackbackbox-title">
                        <img src="<%= theCache.settings["imageFolder"] %>/icon_trackback.gif"
                             alt="<%= __('trackback') %>"/>
                        <b><a href="<%= helper.HTMLEncode(url) %>" title="<%= helper.HTMLEncode(title) %>" target="_blank">
                                <%
                                    var strTitle = helper.HTMLEncode(title);
                                    if (arrKeywords.length > 0) {
                                        strTitle = helper.highlight(strTitle, arrKeywords);
                                    }
                                %>
                                <%= strTitle %>
                            </a></b>
                        <div class="trackbackbox-label">
                            [ <%= helper.HTMLEncode(blog) %> | <%= helper.getDateTimeString("YY-MM-DD hh:ii:ss", time) %>
                            <% if(theUser.groupID == 1){ %>
                            | <%= IP %>
                            <% } %>
                            ]
                            <% if(theUser.loggedIn && (theUser.rights["delete"] > 1 ||
                                    (theUser.rights["delete"] == 1 && theUser.id == log_authorID))){ %>
                            &nbsp;<a href="trackback.asp?act=delete&amp;id=<%= id %>"
                                     onclick="return confirm('<%= __('confirm_delete_trackback') %>?')"><img
                                        src="<%= theCache.settings["imageFolder"] %>/icon_del.gif"
                                        alt="<%= lang['delete'] %>"></a>
                            <% } %>
                        </div>
                    </div>
                    <div class="trackbackbox-content">
                        <%
                            var strExcerpt = helper.HTMLEncode(excerpt);
                            if (arrKeywords.length > 0) {
                                strExcerpt = helper.highlight(strExcerpt, arrKeywords);
                            }
                        %>
                        <%= strExcerpt %>
                        <br/><br/>
                        <a href="article.asp?id=<%= log_id %>">&raquo; <%= helper.HTMLEncode(log_title) %></a>
                    </div>
                </div>
                <% }
                }
                }
                %>
                <div class="article-bottom">
                    <div class="pages">
                        <%= __('trackbacks') %> |
                        <%- strPageLinks %>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <% include ../sidebar %>
    <div class="clear"></div>
</div>

<% include ../pageFooter %>
